package org.yty.travelagencymongodb.service;

import org.yty.travelagencymongodb.model.DTO.HistoryMessageQueryDTO;
import org.yty.travelagencymongodb.model.Entity.Message;

import java.util.List;

public interface MessageService {
    void save(Message message);

    List<Message> getHistoryMessages(HistoryMessageQueryDTO historyMessageQueryDTO);

    List<Message> getMessages(Long senderId, Long receiverId);
}
